﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/AdminPanel/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Domain.Customer>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Add new customer
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Add new customer</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.DisplayName) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.DisplayName) %>
                <%: Html.ValidationMessageFor(model => model.DisplayName) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.LegalName) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.LegalName) %>
                <%: Html.ValidationMessageFor(model => model.LegalName) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.BankName) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.BankName) %>
                <%: Html.ValidationMessageFor(model => model.BankName) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.AccountNumber) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.AccountNumber) %>
                <%: Html.ValidationMessageFor(model => model.AccountNumber) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.DirectorName) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.DirectorName) %>
                <%: Html.ValidationMessageFor(model => model.DirectorName) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.TIN) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.TIN) %>
                <%: Html.ValidationMessageFor(model => model.TIN) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.LegalAddress) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.LegalAddress) %>
                <%: Html.ValidationMessageFor(model => model.LegalAddress) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.BusinessAddress) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.BusinessAddress) %>
                <%: Html.ValidationMessageFor(model => model.BusinessAddress) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.ContactName) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ContactName) %>
                <%: Html.ValidationMessageFor(model => model.ContactName) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.ContactPhone) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.ContactPhone) %>
                <%: Html.ValidationMessageFor(model => model.ContactPhone) %>
            </div>

            <div class="editor-label">
                <%: Html.LabelFor(model => model.IsLegal) %>
            </div>
            <div class="editor-field">
                <%: Html.CheckBoxFor(model => model.IsLegal) %>
                <%: Html.ValidationMessageFor(model => model.IsLegal) %>
            </div>
            
            <p>
                <input type="submit" value="Create" />
            </p>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="head" runat="server">
</asp:Content>

